package com.yzw.hello.service.system.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yzw.hello.model.dao.jpa.system.userDao.UserDao;
import com.yzw.hello.model.pojos.system.user.User;
import com.yzw.hello.service.system.user.UserService;

@Service
@Transactional
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;
	
	@Override
	public List<User> getList() {
		// TODO Auto-generated method stub
		return (List<User>) userDao.findAll();
	}

	@Override
	public User getOne(Integer id) {
		// TODO Auto-generated method stub
		return userDao.findOne(id);
	}

}
